package com.example.development.business.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.development.business.enums.DeleteFlagEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author: vince_zww
 * @date: 2020/8/21 23:47
 * @desceription:
 */
@Data
@TableName(value = "user")
public class User {

    @TableId
    private Long id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 上级id
     */
    private Long managerId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 0：未删除，1：已删除
     */
    private Integer deleteFlag = DeleteFlagEnum.FALSE.getCode();


}
